package com.yunji.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yunji.system.entity.TLoginLog;
import com.yunji.system.mapper.TLoginLogMapper;
import com.yunji.system.service.TLoginLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author 研学旅行
 * @since 2020-02-12
 */
@Service
public class TLoginLogServiceImpl extends ServiceImpl<TLoginLogMapper, TLoginLog> implements TLoginLogService {

    @Autowired
    private TLoginLogMapper tLoginLogMapper;


    /**
     * 登录日志
     *
     * @param tLoginLog
     */
    @Override
    public void tLoginLogService(TLoginLog tLoginLog) {
        tLoginLogMapper.insert(tLoginLog);
    }

    /**
     * 登录日志列表查询
     *
     * @return
     */
    @Override
    public List<TLoginLog> queryAllTLoginLog() {
        return tLoginLogMapper.selectList(null);
    }
}
